import request from '@/utils/request'

// 查询采购应付列表
export function listBuyMustPay(query) {
  return request({
    url: '/finance/buyMustPay/list',
    method: 'get',
    params: query
  })
}

// 查询采购应付详细
export function getBuyMustPay(id) {
  return request({
    url: '/finance/buyMustPay/' + id,
    method: 'get'
  })
}

// 新增采购应付
export function addBuyMustPay(data) {
  return request({
    url: '/finance/buyMustPay',
    method: 'post',
    data: data
  })
}

// 修改采购应付
export function updateBuyMustPay(data) {
  return request({
    url: '/finance/buyMustPay',
    method: 'put',
    data: data
  })
}

// 删除采购应付
export function delBuyMustPay(id) {
  return request({
    url: '/finance/buyMustPay/' + id,
    method: 'delete'
  })
}
